const formData = {
  penColor: '#000',
  backgroundColor: '#fff',
  dotSize: 1
}
const penColorData = ['#000','#5e5e5e','#919191','#d5d4d4','#fff','#ef5fa6','#ff644f','#fae135','#61d739','#00a0ff'];
const bgColorArr = ['#fff','#919191','#5e5e5e','#000','transparent','#ef5fa6','#ff644f','#fae135','#61d739','#00a0ff'];
const defBoard = {
  id: '',
  screenshot: '',
  status: {
    footer: true,
    materialsBox: true
  },
  formData: formData,
  signaturePad: {
    // 画板配置
    options: {
      dotSize: formData.dotSize,
      minWidth: formData.dotSize * 0.3,
      maxWidth: formData.dotSize * 1.7,
      throttle: 1,
      minDistance: 1,
      backgroundColor: formData.backgroundColor,
      penColor: formData.penColor
    },
    // 画板数据
    data: [],
    // 撤销历史
    undoHistory: []
  },
  // 文本列表
  textList: [],
  // 便签列表
  noteList: [],
  // 当前激活的面板
  activePad: {}
}

const state = {
    activeBoardIndex: null,
    defBoard: defBoard,
    boardList: [],
    bgColorArr: bgColorArr,
    penColorData:penColorData
}
export default state;